﻿namespace Baggr.FeedParser.Atom
{
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Xml.Serialization;

    /// <summary>
    /// The "atom:category" element conveys information about a category 
    /// associated with an entry or feed. This specification assigns no
    /// meaning to the content (if any) of this element.
    /// </summary>
    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    [XmlType(Namespace = "http://www.w3.org/2005/Atom")]
    public class AtomCategory
    {
        /// <summary>
        /// The "term" attribute is a string that identifies the category to
        /// which the entry or feed belongs. Category elements MUST have a
        /// "term" attribute.
        /// </summary>
        [XmlAttribute("term")]
        public string Term { get; set; }

        /// <summary>
        /// The "scheme" attribute is an IRI that identifies a categorization
        /// scheme. Category elements MAY have a "scheme" attribute.
        /// </summary>
        [XmlAttribute("scheme", DataType = "anyURI")]
        public string Scheme { get; set; }

        /// <summary>
        /// The "label" attribute provides a human-readable label for display in
        /// end-user applications.
        /// </summary>
        [XmlAttribute("label")]
        public string Label { get; set; }
    }
}
